package com.kk.goGame.service.impl;

import com.kk.goGame.entity.ScoreDetails;
import com.kk.goGame.mapper.ScoreDetailsMapper;
import com.kk.goGame.service.IScoreDetailsService;
import com.qf.framwork.base.BaseDao;

/**
 * <p>
 * 积分表流水表 服务实现类
 * </p>
 *
 * @author kk
 * @since 2023-02-14
 */
public class ScoreDetailsServiceImpl extends BaseDao<ScoreDetails> implements IScoreDetailsService {

    @Override
    public Integer insertScoreDetails(ScoreDetails scoreDetails) {
        System.out.println("插入的分数细节是："+scoreDetails);
        String sql = "insert into score_details values(null,?,?,?,?,?,?,?,?,?)";
        return super.insert(sql,
                scoreDetails.getUid(),
                scoreDetails.getScore(),
                scoreDetails.getAction(),
                scoreDetails.getSource(),
                scoreDetails.getBusinessId(),
                scoreDetails.getCreateTime(),
                scoreDetails.getUpdateTime(),
                scoreDetails.getStatus(),
                scoreDetails.getDelFlag());
    }
}
